package com.leonzhangxf.ioc.injection.method;

/**
 * A command convention.
 *
 * @author leonzhangxf
 */
public interface Command {

    /**
     * Set the message could be dispose when {@link Command#exec()}
     *
     * @param message the message could be dispose
     */
    void setMessage(String message);

    /**
     * To execute the command.
     *
     * @return the result of execution.
     */
    Object exec();
}
